package com.wsjzzcbq.qianyuan.common.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MybatisPlusConfig
 *
 * @author wsjz
 * @date 2021/05/24
 */
@MapperScan(value = {"com.wsjzzcbq.qianyuan.sys.mapper"})
@Configuration
public class MybatisPlusConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

    @Bean
    public MybatisPlusFillHandler mybatisPlusFillHandler() {
        return new MybatisPlusFillHandler();
    }

}

